<template>
	<view class="container">
		<navbar :config="config" ref="navbar" backColor="#000"></navbar>
		<!-- <view style="height: 100vh;overflow: hidden;margin-bottom: 50rpx;"> -->
		<view class="container-bg">
			<view class="top-state">
				<!--待付款-->
				<view class="obligation" v-if="payment_status == 0">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold" style="margin-bottom: 10rpx;">
								{{ close_mode == 0 ? '待付款' : '订单已关闭' }}
							</view> -->
							<view 
							 class="close_modeClass"
							v-if="close_mode == 0">
							
								请在
								<uni-countdown class="uni-countdown-class u-ml10 u-mr10" style="line-height: 33rpx;"
									:backgroundColor="'none'" :color="'#FF211F'" :splitorColor="'#FF211F'"
									:show-day="time1[0] > 0" :day="time1[0]" :hour="time1[1]" :minute="time1[2]"
									:second="time1[3]"></uni-countdown>
								内完成支付，超时订单将自动关闭
							</view>
							<view  class="close_modeClassNo" v-if="close_mode == 1">原因：主动取消</view>
							<view class="close_modeClassNo" v-if="close_mode == 2">原因：商家撤销关闭</view>
							<view class="close_modeClassNo" v-if="close_mode == 3">原因：支付过期关闭</view>
						</view>
					</view>
				</view>

				<!--等待商家发货-->
				<view class="refund-underway obligation" v-if="payment_status == 1">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold" style="margin-bottom: 5px;">待发货</view> -->
							<view class="close_modeClassNo">您的订单已经支付完成，正在等待发货</view>
						</view>
					</view>
				</view>

				<!--商家已发货-->
				<view class="refund-underway obligation" v-if="payment_status == 2">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold " style="margin-bottom: 5px;">待收货</view> -->
							<view class="close_modeClass">
								您的快递待收货
								<text
									v-if="receipt_expire_time > 0">，还剩{{ $mUtil.patTime(receipt_expire_time) }}自动确认</text>
							</view>
						</view>
					</view>
				</view>

				<!--等待确认提货-->
				<view class="refund-underway obligation" v-if="payment_status == 3">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold" style="margin-bottom: 5px;">待提货</view> -->
							<view class="close_modeClass">
								您的商品可自提
								<text
									v-if="receipt_expire_time > 0">，还剩{{ $mUtil.patTime(receipt_expire_time) }}过期</text>
							</view>
						</view>
					</view>
				</view>


				<!--交易成功-->
				<view class="refund-underway" v-if="payment_status==4">
					<view class="u-font28">交易成功</view>
				</view>
				<view class="obligation" v-if="payment_status == 4 && !end">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold " style="margin-bottom: 5px;">待评价</view> -->
							<view class="close_modeClassNo">您的订单已签收，请评价一下商品，剩{{ $mUtil.patTime(last_comment_time) }}自动评价
							</view>
						</view>
					</view>
				</view>
				<!--待评价-->
				<view class="refund-underway obligation" v-if="payment_status == 4 && end">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold " style="margin-bottom: 5px;">已完成</view> -->
							<view class="close_modeClassNo">您的订单已完成，祝你购物愉快</view>
						</view>
					</view>

				</view>
				<view class="refund-underway obligation" v-if="payment_status == 5">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold " style="margin-bottom: 5px;">已完成</view> -->
							<view class="close_modeClassNo">您的订单已完成，祝你购物愉快</view>
						</view>
					</view>
				</view>

				<view class="refund-underway obligation" v-if="payment_status == 7">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold " style="margin-bottom: 5px;">交易结束</view> -->
							<view class="close_modeClassNo">您的订单已结束，祝你购物愉快</view>
						</view>
					</view>
				</view>

				<view class="refund-underway obligation" v-if="payment_status == -1">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold " style="margin-bottom: 5px;">退款中</view> -->
							<view class="close_modeClassNo">您的订单在退款中</view>
						</view>
					</view>
				</view>


				<view class="refund-underway obligation" v-if="payment_status == -2">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold" style="margin-bottom: 5px;">退款完成</view> -->
							<view class="close_modeClassNo">您的订单已完成退款，祝您生活愉快</view>
						</view>
					</view>
				</view>
				<view class="refund-underway obligation" v-if="payment_status == -3">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold " style="margin-bottom: 5px;">退款退货维权中</view> -->
							<view class="close_modeClassNo">您的订单在退款退货维权中</view>
						</view>
					</view>
				</view>

				<view class="refund-underway obligation" v-if="payment_status == -4">
					<view class="u-flex-center u-flex1">
						<image class="timeImg" :src="imgUrl + '/time.png'"></image>
						<view class="u-flex1">
							<!-- <view class="u-font32 u-bold " style="margin-bottom: 5px;">退款退货完成</view> -->
							<view class="close_modeClassNo">您的订单已完成退款退货完成，祝您生活愉快</view>
						</view>
					</view>
				</view>
			</view>
			<view v-if="address">
				<ldAddress :value="address"></ldAddress>
			</view>
			<view v-else>
				<!-- u-bg-fff -->
				<view class="u-flex-column-center" style="margin: 15rpx 0;" v-if="payment_status == 3">
					<text class="u-font26 u-AAAAAA u-mt15">出示数字码向店长核销</text>
					<view class="u-flex-center u-mt15">
						<text class="u-font40 u-474747 u-bold ">{{ pickCode }}</text>
						<text class="u-font28 u-AAAAAA u-ml20" @click="copy(pickCode)">复制</text>
					</view>
				</view>
				<ldAddresszt :value="addresszt"></ldAddresszt>
			</view>
		</view>

		<!-- 包裹选项卡 -->
		<view class="packAge" v-if="!(ship_status == 2 && packAgeList.length == 1) && packAgeList.length > 0">
			<scroll-view scroll-X="true" class="packAge-scoll">
				<view class="every" v-for="(item, index) in packAgeList" :key="index"
					@click="toPackAgeDetail(item, index)">
					<image
						src="https://zhongyi-shop.oss-cn-beijing.aliyuncs.com/songhe/weixin/static/common/packAge-img.png"
						mode="widthFix"></image>
					包裹{{index + 1}}
				</view>
			</scroll-view>
		</view>

		<view class="content-order">
			<view class="pabox" v-if="orderListPay.length > 0" v-for="item in orderListPay" :key="item.id">
				<ldshop showCustomer :phone="payStatus=='pay'?mobile:item.shop.customer_service_phone"
					:shopStatus="shopStatus" :value="item.source_shop_name" :proxy="item.proxy"></ldshop>
				<view v-for="items in item.child_order_list" :key="items.id">
					<ldgoods :value="items" :isInter="items.exchange"></ldgoods>
				</view>
				<view class="buyRemarks">
					<view class="buyRemarksTitle">购买备注</view>
					<view class="buyRemarksView">{{ item.user_remark ? item.user_remark : '无' }}
					</view>
				</view>
				<!-- border -->

				<view class="itemView">
					<view class="itemViewClass">
						<view class="itemViewClass-left">商品金额</view>

						<view v-if="item.child_order_list[0].exchange" class="itemViewClass-right">
							{{ item.child_order_list[0].total_point }}
						</view>
						<view class="itemViewClass-right" v-else>¥ {{ item.original_goods_amount }}</view>
					</view>

					<view class="itemViewClass">
						<view class="itemViewClass-left">运费+税费</view>
						<view class="itemViewClass-right">+{{ item.real_freight }}元</view>
					</view>
					<!-- border u-border-one -->
					<view class="itemViewClass">
						<view class="itemViewClass-left">
							消费补贴
						</view>
						<view class="itemViewClass-right">
							<!-- <text
			      class="consumption_value">{{ $mUtil.isToFixed(item.final_consumption_value, 2) }}</text>  -->
							<rich-text :nodes="$mUtil.isToFixed(item.final_consumption_value, 2)"></rich-text>
						</view>
					</view>

					<view v-if="item.first_order_reduced > 0" class="itemViewClass">
						<view class="itemViewClass-left">
							首单优惠
							<text></text>
						</view>
						<view class="itemViewClass-right">-¥ {{ item.first_order_reduced }}</view>
					</view>
					<!-- 
					<view class="u-flex-center-sb border u-border-one  pt-pb25" >
							<view v-if="marketing_typeTwo==1">秒杀活动折扣</view>
							<view v-else-if="marketing_typeTwo==2">
								拼团会员折扣
								-- 待付款状态 --
							</view>
						<view v-else>店铺会员折扣({{item.user_role_name}}） </view>
				 
						<view class="u-999 u-font30">-¥ {{item.discount_amount}}</view>
					</view>
					 -->
					<view class="itemViewClassXin">
						<view class="itemViewClass-left">共{{ item.goods_number }}件商品，小计：</view>
						<view class="itemViewClass-right">

							<rich-text :nodes="$mUtil.priceBigSmall(item.total_amount)"></rich-text>
						</view>

					</view>




					<view>
						<view>
							<!-- <view class="u-flex-center-sb u-border-one u-plr30 pt-pb25">
					  <view>平台优惠</view>
					  <view v-if="platform_coupon_sharing!=0" class="u-999">-¥{{platform_coupon_sharing}}</view>
					  <view v-else class="u-999">无优惠</view>
					</view>
					<view class="u-flex-center-sb u-border-one u-plr30 pt-pb25">
					  <view>公益积分抵扣</view>
					  <view class="u-999">{{total_point}}</view>
					</view> -->
							<view class="itemViewClass">
								<view class="itemViewClass-left">支付金额</view>
								<!-- u-bold -->
								<view class="itemViewClass-right">
									<rich-text :nodes="$mUtil.priceBigSmall(total_amount)"></rich-text>
								</view>
							</view>
						</view>
						<view>
							<view class="itemViewClass">
								<view class="itemViewClass-left">订单编号</view>
								<view class="itemViewClass-right">{{ order_code }}</view>
							</view>
							<view class="itemViewClass">
								<view class="itemViewClass-left">下单时间</view>
								<view class="itemViewClass-right">{{ format_order_time }}</view>
							</view>
							<view v-if="payment_status >= 1 || payment_status < 0" class="itemViewClass">
								<view class="itemViewClass-left">支付时间</view>
								<view class="itemViewClass-right">{{ format_pay_time }}</view>
							</view>
							<view v-if="(payment_status >= 1 || payment_status < 0) && total_amount != 0">
								<view>支付方式</view>

								<view v-if="pay_mode == 0">余额</view>
								<view v-if="pay_mode == 1">微信</view>
								<view v-if="pay_mode == 2">支付宝</view>
								<view v-if="pay_mode == 3">银行线下</view>
								<view v-if="pay_mode == 4">现金支付</view>
								<view v-if="pay_mode == 5">积分支付</view>
								<view v-if="pay_mode == 6">积分+余额支付</view>
								<view v-if="pay_mode == 7">积分+微信支付</view>
								<view v-if="pay_mode == 8">积分+支付宝支付</view>
							</view>
							<view v-if="payment_status >= 2 && address">
								<view>配送方式</view>
								<view>{{ shipmentModeList[shipment_mode].text }}</view>
							</view>

							<view v-if="payment_status >= 2">
								<view>发货时间</view>
								<view>{{ format_last_ship_time }}</view>
							</view>

							<view v-if="payment_status >= 4">
								<view>收货时间</view>
								<view>{{ format_last_receipt_time }}</view>
							</view>
						</view>
					</view>

				</view>
			</view>
			<view class="pabox" v-if="orderList.length > 0">
				<ldshop showCustomer :phone="payStatus=='pay'?mobile:item.shop.customer_service_phone"
					:shopStatus="shopStatus" :value="source_shop_name"></ldshop>
				<view v-for="(item, index) in orderList" :key="item.id">
					<ldgoods :value="item" @parentevaluation="parentevaluation" :keys="index" :isInter="item.exchange">
					</ldgoods>
				</view>
				<view>
					<view class="itemViewClass">
						<view class="itemViewClass-left">商品金额</view>
						<view class="itemViewClass-right" v-if="orderList[0].exchange">{{ orderList[0].total_point }}
						</view>
						<view class="itemViewClass-right" v-else>¥ {{ original_goods_amount }}</view>
					</view>

					<view class="itemViewClass">
						<view class="itemViewClass-left">运费+税费</view>
						<view class="itemViewClass-right">+{{ real_freight }}元</view>
					</view>
					<view class="itemViewClass">
						<view class="itemViewClass-left">
							消费补贴
						</view>
						<view class="itemViewClass-right">
							<!-- <text
	      class="consumption_value">{{ $mUtil.isToFixed(final_consumption_value, 2) }}</text> 贡献值 -->
							<rich-text :nodes="$mUtil.isToFixed(final_consumption_value, 2)"></rich-text>
						</view>
					</view>

					<view v-if="marketing_type != 0">
						<view v-if="marketing_type == 1">秒杀活动折扣</view>
						<view v-else-if="marketing_type == 2">拼团会员折扣</view>
						<view>-¥ {{ discount_amount }}</view>
					</view>
					<view v-if="first_order_reduced > 0">
						<view>
							首单优惠
							<text></text>
						</view>
						<view>-¥ {{ first_order_reduced }}</view>
					</view>
					<view class="itemViewClassXin">
						<view class="itemViewClass-left">共{{ goodNum }}件商品，小计：</view>
						<view class="itemViewClass-right">
							<text v-if="total_amount > 0"></text>
							<text v-if="total_amount > 0">
								<rich-text :nodes="$mUtil.priceBigSmall(goods_amount)"></rich-text>
							</text>
						</view>
					</view>
					<view class="buyRemarks">
						<view class="buyRemarksTitle">购买备注</view>
						<view class="buyRemarksView">{{ user_remark ? user_remark : '无' }}</view>
					</view>
				</view>

				<view>
					<view>
						<!-- <view class="u-flex-center-sb u-border-one u-plr30 pt-pb25">
				  <view>平台优惠</view>
				  <view v-if="platform_coupon_sharing!=0" class="u-999">-¥{{platform_coupon_sharing}}</view>
				  <view v-else class="u-999">无优惠</view>
				</view>
				<view class="u-flex-center-sb u-border-one u-plr30 pt-pb25">
				  <view>公益积分抵扣</view>
				  <view class="u-999">{{total_point}}</view>
				</view> -->
						<view class="itemViewClass">
							<view class="itemViewClass-left">支付金额</view>
							<!-- u-bold -->
							<view class="itemViewClass-right">
								<rich-text :nodes="$mUtil.priceBigSmall(total_amount)"></rich-text>
							</view>
						</view>
					</view>
					<view>
						<view class="itemViewClass">
							<view class="itemViewClass-left">订单编号</view>
							<view class="itemViewClass-right">{{ order_code }}</view>
						</view>
						<view class="itemViewClass">
							<view class="itemViewClass-left">下单时间</view>
							<view class="itemViewClass-right">{{ format_order_time }}</view>
						</view>
						<view v-if="payment_status >= 1 || payment_status < 0" class="itemViewClass">
							<view class="itemViewClass-left">支付时间</view>
							<view class="itemViewClass-right">{{ format_pay_time }}</view>
						</view>
						<view class="itemViewClass"
							v-if="(payment_status >= 1 || payment_status < 0) && total_amount != 0">
							<view class="itemViewClass-left">支付方式</view>

							<view class="itemViewClass-right" v-if="pay_mode == 0">余额</view>
							<view class="itemViewClass-right" v-if="pay_mode == 1">微信</view>
							<view class="itemViewClass-right" v-if="pay_mode == 2">支付宝</view>
							<view class="itemViewClass-right" v-if="pay_mode == 3">银行线下</view>
							<view class="itemViewClass-right" v-if="pay_mode == 4">现金支付</view>
							<view class="itemViewClass-right" v-if="pay_mode == 5">积分支付</view>
							<view class="itemViewClass-right" v-if="pay_mode == 6">积分+余额支付</view>
							<view class="itemViewClass-right" v-if="pay_mode == 7">积分+微信支付</view>
							<view class="itemViewClass-right" v-if="pay_mode == 8">积分+支付宝支付</view>
						</view>
						<view class="itemViewClass" v-if="payment_status >= 2 && address">
							<view class="itemViewClass-left">配送方式</view>
							<view class="itemViewClass-right">{{ shipmentModeList[shipment_mode].text }}</view>
						</view>

						<view v-if="payment_status >= 2" class="itemViewClass">
							<view class="itemViewClass-left">发货时间</view>
							<view class="itemViewClass-right">{{ format_last_ship_time }}</view>
						</view>

						<view v-if="payment_status >= 4" class="itemViewClass">
							<view class="itemViewClass-left">收货时间</view>
							<view class="itemViewClass-right">{{ format_last_receipt_time }}</view>
						</view>
					</view>
				</view>


			</view>
			<!-- class="upb120" border-top: 1rpx solid #e6e6e6;-->
		</view>
		<view style="height: 130rpx;"></view>
		<!--待付款-->
		<view class="bg-fff u-mt30 btn u-flex" v-if="payment_status == 0 && close_mode == 0 && !end">
			<button class="cancel-btn u-br-999 u-474747" @click="cancelOrder">取消订单</button>
			<button class="pay-btn u-br-f00 u-FF721B"
				@click="goPay(orderid, total_amount, expired_pay_time)">去付款</button>
			<button class="u-order-btn u-br-f00 u-FF721B" @click="customerServiceFun(orderCode, shopId)">
				联系商家</button>
		</view>
		<!-- <view class="bg-fff u-mt30 u-plr30 ptb22 btn u-flex-column-end" v-if="payment_status==0&&close_mode==1">
			<view class="u-flex-center u-mr25">
				<button class="u-order-btn u-br-999 u-999 ">再次购买</button>
			</view>
		</view>
		<view class="bg-fff u-mt30 u-plr30 ptb22 btn u-flex-column-end" v-if="payment_status==0&&close_mode==2">
			<view class="u-flex-center u-mr25">
				<button class="u-order-btn u-br-999 u-999 ">再次购买</button>
			</view>
		</view>
		<view class="bg-fff u-mt30 u-plr30 ptb22 btn u-flex-column-end" v-if="payment_status==0&&close_mode==3">
			<view class="u-flex-center u-mr25">
				<button class="u-order-btn u-br-999 u-999 ">再次购买</button>
			</view>
		</view> -->
		<!--等待商家发货-->
		<view class="bg-fff u-mt30 u-plr30 ptb22 btn u-flex-column-end"
		
		 
		 v-if="payment_status == 1 && !end">
			<view class="u-flex-center u-mr25">
				<button class="u-order-btn u-br-999 u-474747 " v-if="area_feature === 0 && orderInfo.effective"
					@click="goRefundType(1)">申请售后</button>
				<button class="editAddress" v-if="shipment_mode == 0 && orderInfo.third == false"
					@click="changeAddress">修改地址</button>
				<button class="u-order-btn u-br-f00 u-FF721B" @click="customerServiceFun(orderCode, shopId)">
					联系商家</button>
			</view>
		</view>
		<!--商家已发货-->
		<view class="bg-fff u-mt30 u-plr30 btn ptb22 u-flex-column-end" v-if="payment_status == 2 && !end">
			<view class="u-flex-center">
				<button class="u-order-btn u-br-999 u-474747 editAddress" @click="goLogistics">查看物流</button>
				<button class="u-order-btn u-br-f00 u-FF721B editAddress" @click="sureGetOrder">确认收货</button>
				<button class="u-order-btn u-br-f00 u-FF721B u-mr25 editAddress" @click="customerServiceFun(orderCode, shopId)">
					联系商家</button>
			</view>
		</view>
		<view class="bg-fff u-mt30 u-plr30 ptb22 btn u-flex-column-end"
			v-if="payment_status == 5 && area_feature === 0 && orderInfo.effective">
			<view class="u-flex-center u-mr25">
				<button class="u-order-btn u-br-999 u-474747 editAddress" @click="goRefundType(2)">申请售后</button>
				<button class="u-order-btn u-br-f00 u-FF721B editAddress" @click="customerServiceFun(orderCode, shopId)">
					联系商家</button>
			</view>
		</view>
		<!--等待确认提货-->
		<!-- <view class="bg-fff u-mt30 u-plr30 ptb22 btn u-flex-column-end"  v-if="payment_status==5">
				<button class="u-order-btn u-br-999 u-999 u-mr30">再次购买</button>
		</view> -->
		<!--已付款，待发货！-->
		<!-- <view class="bg-fff u-mt30 pt28-pb24 btn u-plr30">
				<button class="u-btn-two u-bg-00321E u-FFF">查看物流</button>
		</view> -->
		<!--申请退货，商家同意退货-->
		<!-- <view class="bg-fff u-mt30 u-plr30 ptb22 btn u-flex-column-end"   v-if="payment_status==8||payment_status==10">
				<button class="u-order-btn u-br-999 u-999 u-mr30" @click="logisticsOpen()">填写物流信息</button>
		</view> -->
<!-- </view> -->
		<!--弹窗评价-->
		<uniPopup type="bottom" ref="uniPopup">
			<view class="popup">
				<view class="u-flex-sb  u-plr30">
					<view class="u-flex">
						<image class="pic" :src="choseGoods.goods_img"></image>
						<view class="u-ml30 wt378">
							<view class="u-474747 u-font28">{{ choseGoods.goods_title }}</view>
							<view class="u-AAAAAA u-font22 u-mt10" v-if="choseGoods.sku_set_name">
								规格：{{ choseGoods.sku_set_name }}</view>
							<view class="u-mt10 u-flex-center">
								<view class="u-font32" style="color: #FF211F;">
									<rich-text :nodes="$mUtil.priceBigSmall(choseGoods.sale_price)"></rich-text>
								</view>
								<text class="u-ml10 u-AAAAAA u-font24">x {{ choseGoods.number }}</text>
							</view>
						</view>
					</view>
					<view class="iconfont u-AAAAAA" @click="close">&#xe603;</view>
				</view>
				<view class="u-bg-fff u-plr30 u-mt5">
					<view class="pt-pb25 u-font28 u-flex-center">
						<text class="u-474747">总体评价：</text>
						<view>
							<text v-for="(item, index) in 5" :key="index" @click="startNum(index)"
								class="iconfont u-font34 u-mr5" :class="gradeNum >= item ? 'grade-active' : 'u-AAAAAA'">
								&#xe624;
							</text>
						</view>
					</view>
					<view class="u-font26"><textarea class="u-font26" @input="textareaInput" :value="textareaVal"
							placeholder="请输入文字评价" placeholder-class="cccfont"></textarea></view>
					<view class="u-mt25 u-font30">添加图片</view>
					<view class="u-mt25">
						<uploadImg imgCount="6" :type="upimgtype" :imgArr="imgArray" url="" @result="resultUrl"
							@delImg="delImg">
						</uploadImg>
					</view>
					<view class="evaluate-submit" @click="submitCom"><button class="u-btn-two"
							style="background-color: #FF211F;">确认提交</button></view>
				</view>
			</view>
		</uniPopup>
		<!--页面加载动画-->
		<ldLoading isFullScreen :active="loading"></ldLoading>
	</view>
</template>

<script>
	import ldgoods from '@/pages/order/orderList/components/ld-goods/ld-goodsDetail.vue';
	import ldAddress from '@/pages/order/orderList/components/ld-address/ld-address.vue';
	import ldAddresszt from '@/pages/order/orderList/components/ld-address/ld-addresszt.vue';
	import uniPopup from '../../../components/uni-popup/uni-popup.vue';
	import uploadImg from '../../../components/uploadImg/imgUpload.vue';
	import ldshop from '@/pages/order/orderList/components/ld-shop/ld-shop.vue';
	export default {
		components: {
			ldAddress,
			ldAddresszt,
			uniPopup,
			uploadImg,
			ldgoods,
			ldshop
		},
		data() {
			return {
				upimgtype: 'comment',
				time1: [0, 0, 0, 0],
				total_point: '', // 公益积分抵扣
				platform_coupon_sharing: '', //已使用的“平台优惠券”所抵扣金额
				final_give_back_point: 0,
				final_consumption_value: '', //订单所获得的爱心值
				//支付状态
				area_feature: null,
				payment_status: null, // 0:未支付,1:已付款
				expired_pay_time: null, //订单剩余支付时间
				total_amount: null, //总金额
				orderid: null,
				goods_amount: null, //商品价格
				first_order_reduced: 0, //首单优惠多少
				real_freight: null, //配送费
				discount_amount: null, //商品会员折扣
				pay_mode: null, //（0余额，1微信，2支付宝）
				order_code: null, //订单编号
				format_order_time: null, //下单时间
				format_pay_time: null, //支付时间
				format_last_ship_time: null, //发货时间
				format_last_receipt_time: null, //收货时间
				receipt_expire_time: '', //自提包裹时间
				freighMoney: null, //物流公司
				goodNum: null, //数量
				shipment_mode: 0,
				pickCode: '', //核销码
				original_goods_amount: null, //原价
				total_reduced: null, //vip优惠
				vipcode: '',
				shopStatus: false,
				loading: true,
				config: {
					back: true, //false是tolbar页面 是则不写
					title: '订单详情',
					color: '#000',
					//背景颜色;参数一：透明度（0-1）;参数二：背景颜色（array则为线性渐变，string为单色背景）
					backgroundColor: [1, "#fff"],
					statusBarFontColor: '#1A1A1A',
					backIconColor: "#000",
				},
				isSubmit: false,
				index: 0,
				final_give_back_pointTwo: 0,
				mobile: '',
				end: false,
				logImg: '', //物流图片
				address: null,
				addresszt: null,
				last_ship_time: 0, //发货时间
				last_receipt_time: 0, //收货时间
				orderList: [],
				orderListPay: [],
				source_shop_name: '',
				user_remark: '', //备注
				payStatus: '',
				goodsid: null, //评价商品的id
				choseGoods: {},
				textareaVal: '',
				upimg: [],
				imgArray: [],
				gradeNum: 0,
				close_mode: 0, //0未关闭,1用户撤销关闭,2商家撤销关闭,3支付过期关闭,4退货成功,5退款成功,6支付成功,但条件已经不允许购买,发生自动退款关闭,7自提过期
				marketing_type: null, //折扣类型
				marketing_typeTwo: null, //待支付的折扣类型
				ship_status: '', //发货状态
				imgUrl: this.$mConfig.staticUrl,
				link: false,
				//配送方式
				shipmentModeList: [{
						text: '物流'
					},
					{
						text: '自提'
					},
					{
						text: '预约'
					}
				],
				// 包裹列表
				packAgeList: [],
				orderInfo: {},
				orderCode: '',
				shopId: ''
			};
		},
		onLoad(options) {
			if (options.id) {
				this.orderid = options.id;
				this.payStatus = options.status;
				this.orderCode = options.orderCode;
				this.shopId = options.shopId;
			}
			if (this.payStatus == 'pay') {
				this.orderDetail(this.orderid);
			}
			if (this.payStatus == 'waitpay') {
				this.orderDetailPay(this.orderid);
			}
		},

		methods: {
			goProductDetails(id, shopid) {
				uni.navigateTo({
					url: '/pages/product/goods/goods?id=' + id + '&shopid=' + shopid
				});
			},
			//复制
			copy(code) {
				uni.setClipboardData({
					data: code,
					success: () => {
						uni.showToast({
							title: '复制成功'
						});
					}
				});
			},
			goPhone(phone) {
				if (phone) {
					uni.makePhoneCall({
						phoneNumber: phone //仅为示例
					});
				}
			},
			restCom() {
				this.textareaVal = '';
				this.gradeNum = 0;
			},
			//提交评价
			submitCom() {
				if (this.gradeNum == 0) {
					this.$mUtil.toast('请评价星星');
				} else if (this.textareaVal == '') {
					this.$mUtil.toast('请输入文字评价');
				} else {
					let imgs = '';
					if (this.upimg.length > 0) {
						imgs = this.upimg.join(',');
					} else {
						imgs = '';
					}
					let data = {
						chlid_order_id: this.goodsid,
						order_id: this.orderid,
						level: this.gradeNum,
						content: this.textareaVal,
						img: imgs
					};
					this.$http.post('/comment/orderGoods/savegeneralgoods', data).then(res => {
						if (res && res.code == 200) {
							this.$mUtil.toast('评价成功');
							this.$refs.uniPopup.close();
							setTimeout(() => {
								uni.reLaunch({
									url: '/pages/order/orderList/orderList'
								});
							}, 1000);
						}
					});
				}
			},
			textareaInput(e) {
				this.textareaVal = e.detail.value;
			},
			resultUrl(e) {
				if (e) {
					this.upimg = e;
				}
			},
			delImg(e) {
				if (e) {
					this.upimg = e;
				}
			},
			startNum(index) {
				this.gradeNum = index * 1 + 1;
			},
			//评价
			parentevaluation(data) {
				this.choseGoods = this.orderList[data.keys];
				this.goodsid = data.id;
				this.$refs.uniPopup.open();
			},
			//确认收货
			sureGetOrder() {
				uni.showModal({
					title: '提示',
					content: '确定已经收到了该商品？',
					success: res => {
						if (res.confirm) {
							this.$http.post('/order/receipt', {
								order_id: this.orderid
							}).then(res => {
								if (res && res.code == 200) {
									this.$mUtil.toast('收货成功');
									setTimeout(() => {
										uni.reLaunch({
											url: '/pages/order/orderList/orderList'
										});
									}, 1000);
								}
							});
						} else if (res.cancel) {}
					}
				});
			},
			//选完地址回选
			otherFun(object) {
				if (!!object) {
					this.$http.put((this.payStatus == 'pay' ? '/order/update-receipt/' :
							'/order/update-receipt-payorder/') + this
						.orderid + '/' + object.addressid).then(res => {
						if (res && res.code == 200) {
							this.$mUtil.toast('修改成功');
							if (this.payStatus == 'pay') {
								this.orderDetail(this.orderid);
							}
							if (this.payStatus == 'waitpay') {
								this.orderDetailPay(this.orderid);
							}
						}
					});
				}
			},
			//修改地址
			changeAddress() {
				uni.navigateTo({
					url: '/pages/user/address/addressList'
				});
			},
			//取消订单
			cancelOrder() {
				uni.showModal({
					title: '提示',
					content: '确定取消该订单吗？',

					success: res => {
						if (res.confirm) {
							this.$http.post('/order/cancel-pay/' + this.orderid).then(res => {
								if (res && res.code == 200) {
									this.$mUtil.toast('取消成功');
									setTimeout(() => {
										uni.reLaunch({
											url: '/pages/order/orderList/orderList'
										});
									}, 1000);
								}
							});
						} else if (res.cancel) {}
					}
				});
			},
			// 订单详情
			orderDetail(id) {
				this.$http.get('/order/info/' + id).then(res => {
					this.loading = false;
					if (res && res.code == 200) {
						let target = res.data;
						this.orderInfo = target
						this.area_feature = target.area_feature
						this.mobile = target.shop.customer_service_phone;
						this.final_give_back_point = target.final_give_back_point;
						this.address = target.receipt;
						this.addresszt = target.shop;
						this.orderList = target.child_order_list;
						this.source_shop_name = target.source_shop_name;
						this.user_remark = target.user_remark;
						this.total_amount = target.total_amount;
						this.vipcode = target.user_role_name; //vipcode
						this.goods_amount = target.goods_amount; //商品价格
						this.original_goods_amount = target.original_goods_amount; //商品原价价格
						this.total_reduced = target.total_reduced; //vip优惠
						this.first_order_reduced = target.first_order_reduced; //首单优惠多少
						this.real_freight = target.real_freight; //配送费
						this.discount_amount = target.discount_amount; //商品会员折扣
						this.pay_mode = target.pay_mode; //（0余额，1微信，2支付宝）
						this.order_code = target.order_code; //订单编号
						this.format_order_time = target.format_order_time; //下单时间
						this.format_pay_time = target.format_pay_time; //支付时间

						this.format_last_ship_time = target.format_last_ship_time; //发货时间
						this.format_last_receipt_time = target.format_last_receipt_time; //收货时间
						this.last_ship_time = target.last_ship_time; //发货时间
						this.last_receipt_time = target.last_receipt_time; //收货时间
						this.goodNum = target.goods_number; //数量
						this.logImg = target.child_order_list[0].goods_img;
						this.last_comment_time = target.child_order_list[0].last_comment_time; //评价时间
						this.shipment_mode = target.shipment_mode;
						this.ship_status = target.ship_status;
						this.end = target.end;
						this.marketing_type = target.marketing_type;
						this.total_point = target.total_point;
						this.platform_coupon_sharing = target.platform_coupon_sharing;
						this.final_consumption_value = target.final_consumption_value;
						if (target.order_package) {
							this.receipt_expire_time = target.order_package.receipt_expire_time;
							if (target.order_package.express) {
								this.freighMoney = target.order_package.express.express_name; //物流公司
							}
							if (target.order_package.pickup) {
								this.pickCode = target.order_package.pickup.verification_code;
							}
						}
						if (target.rights_type == 0 && target.rights_status == 0) {
							if (target.transaction_status == 1) {
								//待发货
								this.payment_status = 1;
								this.$refs.navbar.conf.title = "待发货"
							}

							if (target.transaction_status == 3) {
								//待收货
								if (target.shipment_mode == 0) {
									this.payment_status = 2;
									this.$refs.navbar.conf.title= "待收货"
								} else {
									this.payment_status = 3;
									this.$refs.navbar.conf.title = "待提货"
								}
							}


							if (target.transaction_status == 5 && target.comment_status == 0) {
								//交易完成未评价
								this.payment_status = 4;
								this.$refs.navbar.conf.title = "待评价"
							}
							
							
							


							if (target.transaction_status == 5 && !target.end) {
								//交易完成已评价
								this.payment_status = 5;
								this.$refs.navbar.conf.title = "已完成"
							}


							if (target.transaction_status == 5 && target.end) {
								//交易完成已评价
								this.payment_status = 7;
								this.$refs.navbar.conf.title = "交易结束"

							}
						}
					
						if (target.transaction_status == 6) {
							//关闭
							this.payment_status = 6;
							this.$refs.navbar.conf.title= "关闭订单"
						}
						//rights_type:0没有，1仅退款,2退款退货,rights_status:（0没有，1维权中，2完成）
						if (target.rights_type == 1 && target.rights_status == 1) {
							//退款维权中
							this.payment_status = -1;
							this.$refs.navbar.conf.title= "退款中"
						}
						if (target.rights_type == 1 && target.rights_status == 2) {
							//退款完成
							this.payment_status = -2;
							this.$refs.navbar.conf.title= "退款完成"
						}
						// 1 待发货
						// 2 待收货
						// 3 待提货
						// 4 待评价
						// 5 已完成
						// 7 交易结束
						// 	-1 退款中 -2 退款完成 -3 退款退货维权中 -4 退款退货完成
						if (target.rights_type == 2 && target.rights_status == 1) {
							//退款退货维权中
							this.payment_status = -3;
							this.$refs.navbar.conf.title= "退款退货维权中"
						}
						if (target.rights_type == 2 && target.rights_status == 2) {
							//退款退货完成
							this.payment_status = -4;
							this.$refs.navbar.conf.title = "退款退货完成"
						}
						this.getPackAge(res.data.id)
						console.log("this.config.title",this.$refs.navbar.conf.title)
					}
				});
			},
			// 包裹信息
			getPackAge(orderId) {
				this.$http.get(`/order/package/allpackage/${orderId}`).then(res => {
					if (res.code === 200) {
						this.packAgeList = res.list
					}
				})
			},
			toPackAgeDetail(item, index) {
				uni.navigateTo({
					url: `/pages/order/logisticsNew?id=${item.order_id}&index=${index}`
				})
			},
			// 支付单详情
			orderDetailPay(id) {
				this.$http.get('/pay/order/sale-detail/' + id).then(res => {
					this.loading = false;
					if (res && res.code == 200) {
						let target = res.page.order_list[0];

						this.address = res.page.receipt;
						this.final_give_back_pointTwo = target.final_give_back_point;
						this.addresszt = res.page.self_take_shop;
						this.orderListPay = res.page.order_list;
						if (res.page.pay_order.payment_status != 5) {
							this.payment_status = 0;
							if(this.close_mode==0){
								// {{ close_mode == 0 ? '待付款' : '订单已关闭' }}
								this.$refs.navbar.conf.title= "待付款"
							}else{
								this.$refs.navbar.conf.title= "订单已关闭"
							}
						} else {
							this.payment_status = res.page.pay_order.payment_status;
						}
						this.time1 = this.$mUtil
							.countDown(res.page.pay_order.expired_pay_time / 1000, res.page.pay_order.now_millis)
							.split(':')
							.map(val => Number(val));
						this.total_amount = res.page.pay_order.total_amount;
						this.close_mode = res.page.pay_order.close_mode;
						this.user_remark = target.user_remark;
						this.marketing_typeTwo = target.marketing_type;

						// this.goods_amount=target.goods_amount//商品价格
						// this.first_order_reduced=target.first_order_reduced//首单优惠多少
						// this.real_freight=target.real_freight//配送费
						this.pay_mode = target.pay_mode; //（0余额，1微信，2支付宝）
						this.order_code = target.order_code; //订单编号
						this.format_order_time = target.format_order_time; //下单时间
						this.format_pay_time = target.format_pay_time; //支付时间
						this.format_last_ship_time = target.format_last_ship_time; //发货时间
						this.format_last_receipt_time = target.format_last_receipt_time; //收货时间
						this.total_point = target.total_point;
						this.platform_coupon_sharing = target.platform_coupon_face_value;
						this.final_consumption_value = target.final_consumption_value;
					}
				});
			},
			close() {
				this.$refs.uniPopup.close();
				this.restCom();
			},
			//支付页

			goPay(id, total_amount, expired_pay_time) {
				uni.navigateTo({
					url: '../../order/pay?id=' + id + '&total_amount=' + total_amount + '&expired_pay_time=' +
						expired_pay_time
				});
			},
			//申请售后
			goRefundType(i) {
				//i:1未发货，退款，2收到货退款/退货
				uni.setStorageSync('blackgoodsList', this.orderList);
				if (this.orderInfo.third) {
					uni.navigateTo({
						url: "refundType?order_code=" + this.order_code + '&format_order_time=' + this
							.format_order_time +
							'&keystatus=3' +
							"&orderid=" + this.orderid
					})
				} else {
					if (i == 1) {
						uni.navigateTo({
							url: 'applicationDrawback?keystatus=' + i + '&title=申请退款' + '&orderid=' + this.orderid
						});
					} else {
						uni.navigateTo({
							url: 'refundType?order_code=' + this.order_code + '&format_order_time=' + this
								.format_order_time +
								'&keystatus=' + i + '&orderid=' + this.orderid
						});
					}
				}
			},
			//查看物流
			goLogistics() {
				uni.navigateTo({
					// url: '../logistics?id=' + this.orderid + '&num=' + this.goodNum + '&img=' + this.logImg + '&type=1'
					url: '../logisticsNew?id=' + this.orderid + '&index=0'
				});
			},
			//填写物流信息
			logisticsOpen() {
				this.$refs.logisticsOpen.open();
			},
			//选择快递
			deliveryPicker(e) {
				this.index = e.target.value;
			},
			//提交表单物流信息
			logisticsSubmit(e) {
				let target = e.detail.value;
				console.log(target);
				if (!target.deliveryOdd) {
					this.$mUtil.toast('请输入快递单号');
					return false;
				}
			},
			// 联系商家
			async customerServiceFun(code, shopId) {
				// let res = await this.$http.post(checkOnline, {
				// 	shopId: shopId
				// })
				// if (res.code == 200 && res.data.accid != null) {
				// 	const id = 'p2p-' + res.data.accid;
				// 	await uni.$UIKitStore.uiStore.selectSession(id);
				// 	uni.navigateTo({
				// 		url: "/pages/imv9/index?id=" + code,
				// 	});
				// }
				uni.navigateTo({
					url: "/pages/imv9/tipsPages?shopId=" + shopId + "&id=" + code,
				});
			}
		}
	};
</script>

<style lang="scss" scoped>
	page{
		
	}
	/deep/ .uni-scroll-view-content {
		overflow: scroll;
		white-space: nowrap;
	}

	.uni-countdown-class {
		height: 32rpx;

		/deep/ .uni-countdown__splitor {
			padding: 0 4rpx;
			margin-top: -6rpx;
		}
	}

	.border {
		border-bottom: 3rpx solid #e7e7e7;
	}

	.cccfont {
		font-size: 26rpx;
		color: #eee;
	}

	.grade-active {
		color: #FF211F;
	}

	.u-AAAAAA {
		color: #AAAAAA;
	}

	.user_remark {
		background-color: #fff;
		padding: 30rpx;
		border-top: 1px solid #eee;
	}

	.boxTextarea {
		width: 100%;
		height: 80rpx;
		background-color: #fafafa;
		padding: 22rpx 20rpx;
		box-sizing: border-box;
		border: 1rpx solid #ededed;
		border-radius: 20rpx;
	}

	.content-order {
		width: 712rpx;
		height: auto;
		background: #FFFFFF;
		border-radius: 19rpx;
		margin: 19rpx;
	}

	.pabox {
		padding: 19rpx;
		margin-bottom: 150rpx;
		overflow: hidden;
		
		// overflow-y: scroll;
		

		.consumption_value {
			color: #FF6600;
			margin-right: 10rpx;
		}

		.consumption_value-icon {
			font-size: 40rpx;
			color: #FF721B;
		}
	}

	.upb120 {
		padding-bottom: 140rpx;
	}

	.bg-fff {
		background-color: #ffffff;
	}

	.ptb22 {
		padding-top: 22rpx;
		padding-bottom: 22rpx;
	}

	.pt-pb25 {
		padding-top: 25rpx;
		padding-bottom: 25rpx;
	}

	.pt28-pb24 {
		padding-top: 28rpx;
		padding-bottom: 24rpx;
	}

	.iconfont58 {
		font-size: 58rpx;
	}

	.mt44 {
		margin-top: 44rpx;
	}

	.ml38 {
		margin-left: 38rpx;
	}

	.ml82 {
		margin-left: 82rpx;
	}

	.wt378 {
		width: 378rpx;
	}

	.wt504 {
		width: 504rpx;
	}

	.u-br-999 {
		border: 1px solid #e6e6e6;
	}

	.u-br-f00 {
		border: 1px solid #FF211F;
	}

	.bg-00321e {
		background: #0B844A;
	}

	.account-paid {
		padding: 44rpx 0rpx;
	}

	.account-paid image {
		width: 202rpx;
		height: 124rpx;
	}

	.btn {
		width: 100%;
		position: fixed;
		bottom: 0rpx;
		padding: 22rpx 0rpx;
		border-radius: 20rpx 20rpx 0 0;
	}

	.cancel-btn {
		margin-left: auto;
		// background-color: #E7EEFC;
		color: #474747;
		border: 1rpx solid #AAAAAA;
	}

	.cancel-btn,
	.pay-btn {
		width: 202rpx;
		height: 70rpx;
		line-height: 70rpx;
		border-radius: 35px;
		font-size: 28rpx;
		margin-right: 30rpx;
	}

	.pay-btn {
		// background-color: #FF721B;
	}

	.top-state {
		// background-color: #F2F5FC;
		// color: #FF721B;
		padding: 19rpx;

		// 待支付
		.obligation {
			display: flex;
			justify-content: space-between;

			.timeImg {
				display: none;
				width: 70rpx;
				height: 54rpx;
				margin-right: 40rpx;
			}
		}
	}

	.address {
		background-color: #ffffff;
		padding-top: 72rpx;

		.linkman {
			padding-bottom: 34rpx;
		}

		.remark {
			padding: 35rpx 0rpx 35rpx 50rpx;
		}
	}

	//弹窗填写物流信息
	.logisticsPopup {
		background-color: #ffffff;
		width: 100%;
		border-radius: 20rpx;

		.pd {
			padding: 15rpx 98rpx 68rpx;
		}

		input {
			height: 70rpx;
			line-height: 70rpx;
			border: 1rpx solid #cccccc;
			border-radius: 15rpx;
			padding-left: 8rpx;
			color: #999999;
		}

		.icon {
			margin-top: -65rpx;
		}

		.pl-pr {
			padding-left: 74rpx;
		}

		button {
			margin-top: 66rpx;
			background-color: #01331f;
			width: 345rpx;
		}
	}

	// 弹窗评价
	.popup {
		background-color: #f5f5f5;
		width: 100%;
		border-radius: 18rpx 18rpx 0px 0px;
	}

	.u-flex-sb {
		display: flex;
		justify-content: space-between;
		padding-top: 30rpx;
		padding-bottom: 30rpx;
		background-color: #ffffff;
		border-radius: 18rpx 18rpx 0px 0px;

		.pic {
			width: 155rpx;
			height: 155rpx;
		}
	}

	textarea {
		width: 100%;
		height: 210rpx;
		opacity: 0.66;
		border: 1rpx solid #e6e6e6;
		border-radius: 8rpx;
		padding-left: 22rpx;
		padding-top: 14rpx;
		box-sizing: border-box;
	}

	.evaluate-submit {
		margin-top: 58rpx;
		padding-bottom: 25rpx;
	}

	.evaluate-submit button {
		background-color: #FF721B;
		color: #ffffff;
	}

	// 包裹选项卡
	.packAge {
		// width: 100%;
		height: 160rpx;
		margin: 0 30rpx 30rpx 30rpx;
		padding: 30rpx;
		line-height: 100rpx;
		background-color: #fff;
		border-radius: 40rpx;

		.packAge-scoll {
			width: 100%;
			height: 100%;
			white-space: nowrap;
		}

		.every {
			display: inline-block;
			width: 200rpx;
			height: 80rpx;
			margin-right: 20rpx;
			line-height: 80rpx;
			padding-left: 20rpx;
			border-radius: 20rpx;
			border: 1rpx solid #FF721B;
			color: #FF721B;

			image {
				width: 30rpx;
				height: 30rpx;
				margin-right: 20rpx;
				vertical-align: middle;
			}
		}
	}

	.buyRemarks {
		margin-top: 31rpx;
	}

	.buyRemarksTitle {
		font-weight: 600;
		font-size: 27rpx;
		color: #333333;
		line-height: 23rpx;
	}

	.buyRemarksView {
		width: 673rpx;
		height: 77rpx;
		background: #F5F5F5;
		border-radius: 12rpx 12rpx 12rpx 12rpx;
		font-weight: 400;
		font-size: 23rpx;
		color: #333333;
		line-height: 38rpx;
		padding: 19rpx;
		box-sizing: border-box;
		margin-top: 19rpx;

	}

	.itemView {}

	.itemViewClass {
		width: 673rpx;
		height: 38rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		margin-top: 31rpx;
	}

	.itemViewClass-left {
		font-weight: 600;
		font-size: 27rpx;
		color: #333333;
		line-height: 23rpx;
	}

	.itemViewClass-right {
		font-weight: 400;
		font-size: 27rpx;
		color: #333333;
		line-height: 38rpx;
	}

	.itemViewClassXin {
		display: flex !important;
		flex-direction: row !important;
		justify-content: flex-end !important;
		align-items: center !important;
		margin-top: 31rpx !important;

		.itemViewClass-left {
			font-weight: 400;
			font-size: 27rpx;
			color: #333333;
			line-height: 38rpx;
		}

		.itemViewClass-right {
			font-weight: 400;
			font-size: 27rpx;
			color: #FF211F;
			line-height: 38rpx;
		}
	}

	.editAddress {
		width: 192rpx;
		height: 85rpx;
		background: #FF211F;
		border-radius: 19rpx 19rpx 19rpx 19rpx;
		font-weight: 400;
		font-size: 27rpx;
		color: #FFFFFF;
		line-height: 38rpx;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
	}
	.close_modeClass{
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		font-weight: 400;
		font-size: 27rpx;
		color: #FF211F;
		line-height: 27rpx;
	}
	.close_modeClassNo{
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		font-weight: 400;
		font-size: 27rpx;
		color: #999999;
		line-height: 27rpx;
	}
	.container{
		// margin-bottom: 300rpx;
	}
</style>